Expose converter as a decorator#1541
Conversation
9990092 to
25cc70e
Compare
25cc70e to
cfbd10c
Compare
hynek
left a comment
There was a problem hiding this comment.
nice thanks!
for the next time: please link the news fragment to the PR, not the issue. I'll fix it myself this time, no worries.
|
so, who's volunteering to go over to mypy and add it to their plugin? ;) |
|
I'm up for it if can find where it is defined. I need to add something similar for my project as well |
ping @Tinche 😇 |
|
Found it with fun comments 😁 I guess the bigger question is if and how to move the plugin inside here |
|
huh I think there was an effort/issue about that before?? I'm at a conference rn but shouldn't be too hard to find. There's been a bunch of pro/cons but I guess the main q is if we can trick Ivan and Nikita to contribute here too since they seem to be the most active ones. ;) |
Summary
Now that the
Convertercan acceptself, we can expose it as a decorator similar tovalidatorFollow-up to #1267.
Closes #240
Pull Request Check List
mainbranch..pyi).typing-examples/baseline.pyor, if necessary,typing-examples/mypy.py.attr/__init__.pyi, they've also been re-imported inattrs/__init__.pyi.docs/api.rstby hand.@attr.s()and@attrs.define()have to be added by hand too.versionadded,versionchanged, ordeprecateddirectives.The next version is the second number in the current release + 1.
The first number represents the current year.
So if the current version on PyPI is 26.2.0, the next version is gonna be 26.3.0.
If the next version is the first in the new year, it'll be 27.1.0.
.rstand.mdfiles is written using semantic newlines.changelog.d.